package com.xmb.wcapi.constant;

public enum ConfigConstant {

	A("A件", "A件"),
	C("C件", "C件"),
	D("D件", "D件");


	public String code;

	public String message;

	ConfigConstant(String code, String message){
		
		this.code = code;
		this.message = message;
	}
	
	public static String getMessage(String code) {
		for (ConfigConstant c : ConfigConstant.values()) {
			if (code.contains(c.getCode())) {
				return c.message;
			}
		}
		return null;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	
}
